package com.insigma.business.qrcode.placement.dao;

import com.insigma.business.qrcode.placement.entity.ResetSubsidyDistrDetlEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author max
 * @Description:
 * @date 2024-04-23 15:59
 */
@Mapper
public interface ResetSubsidyDistrDetlDAO {

    /**
     * 新增
     * @param entity
     * @return
     */
    int insert(ResetSubsidyDistrDetlEntity entity);


    /**
     * 批量新增
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<ResetSubsidyDistrDetlEntity> entities);

    /**
     * 按主键更新
     * @param entity
     * @return
     */
    int updateById(ResetSubsidyDistrDetlEntity entity);

    /**
     * 按条件查询
     * @param entity
     * @return
     */
    List<ResetSubsidyDistrDetlEntity> queryByCondition(ResetSubsidyDistrDetlEntity entity);
}
